package com.yk.mr.service.job.api;

import com.sun.deploy.ref.AppModel;
import com.yk.mr.model.job.JobModel;
import org.json.JSONArray;
import org.json.JSONException;

import java.util.List;
import java.util.Map;

/**
 * Project Name:cykmr
 * File Name:IJobService
 * Package Name:com.yk.mr.controller.job
 * Date:2017/10/16 14:39
 * Author:zhangshaoyang
 * Description:
 * Copyright (c) 2017, 重庆云凯科技有限公司 All Rights Reserved.
 */
public interface IJobService {
    boolean saveJob(String name, String type, String jobName,String jarPath, String jobType, String parameters);

    boolean saveJob(String jobName, String jobType, String parameters);

    boolean deleteJob(String jobId);

    boolean updateJob(String jobId, String input, String output);

    List getJobModel();

    List<JobModel> getJobModel(int start, int limit);

    JobModel getJobModel(String jobId);

    /**
     * 查询job总数
     * @return job总数
     */
    long querySum();

    Map<String,Object> getSelectFile(JSONArray selected)throws JSONException;


}
